package com.aruio.service.impl;

import com.aruio.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Description 测试服务实现类
 * @Date 2024/9/25 10:38
 * @Created by 10574
 */
@Service
@Slf4j
public class TestServiceImpl implements TestService {
    @Override
    @Async("asyncThreadPool")
    public void doSomething(){
        log.info("--------------doSomething----------");
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
    }
}
